package com.glsc.ngateway.platform.utils;

public class RandomIdUtils {
    /**
     * 时间戳+10000~99999随机数生成id
     * @return
     */
    public static Long randomId(){
        Long timeMils = System.currentTimeMillis();
        Long random = (long) (10000 + 89999 * Math.random());
        return Long.parseLong (timeMils+String.valueOf(random));
    }
}
